package com.hmall.item.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @Author wangxinyi
 * @Date 2024/11/15 19:50
 */
@Configuration
public class RabbitConfig {

    /**
     * 上下架队列
     * @return
     */
    @Bean
    public Queue simpleQueue(){
        return new Queue("item.queue",true);
    }

}
